<?php 

  $id=$_GET[id];
  include_once('../../public/function.php');
  $config = include_once('../../public/config.php');
  $res= del($config,'gonggao',$id);

  if ($res){
     echo "<script>
     alert('删除成功');window.location.href='gonggao.php'</script>";
 }else{
 	echo "<script>
     alert('删除失败');window.location.href='gonggao.php'</script>";
 }


 ?>